package com.axend.aerosense.base.database.device;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;


import com.axend.aerosense.base.bean.ChooseDeviceBean;

import java.util.List;

@Dao
public interface DeviceInfoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(ChooseDeviceBean.DeviceInfo deviceInfo);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertList(List<ChooseDeviceBean.DeviceInfo> deviceInfoList);


    @Query("select * from DeviceInfo where  radarType=:type")
    ChooseDeviceBean.DeviceInfo queryDeviceType(String type);
}
